# _*_ coding: utf-8 _*_
# @Time : 2024-01-19 22:40
# @Author : wf

from bs4 import BeautifulSoup
import urllib.request
import http.client

url = 'https://www.starbucks.com.cn/assets/search/menu-source-zh.json'

res: http.client.HTTPResponse = urllib.request.urlopen(url)
content = res.read().decode('utf-8')
# print(content)

with open('starbucks-menu.json', 'w+', encoding='utf-8') as fp:
    fp.write(content)
